/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ejb;

import exception.EmployeDataAccessException;
import exception.EmployeServiceException;
import exception.UserLoginException;
import exception.UserNotFoundException;
import eyrolles.Employe;
import java.util.ArrayList;
import javax.ejb.Remote;

/**
 *
 * @author Nairo
 */
@Remote
public interface EyrollesRemote {
    
    void ajouterEmploye(Employe employe, String password) throws EmployeDataAccessException, EmployeServiceException;

    void supprimerEmploye(String username) throws EmployeDataAccessException, EmployeServiceException;

    void modifierEmploye(eyrolles.Employe employe, String password) throws EmployeDataAccessException, EmployeServiceException;

    ArrayList<Employe> recupererEmployes() throws EmployeDataAccessException, EmployeServiceException;

    Employe recupererEmploye(String username) throws EmployeDataAccessException, EmployeServiceException, UserNotFoundException;

    String recupererPassword(String username) throws EmployeDataAccessException, EmployeServiceException;

    String connecterEmploye(String username, String password) throws EmployeDataAccessException, EmployeServiceException, UserLoginException;
}
